<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>

<jsp:useBean id="UserBean" scope="session" class="bean.UserBean">
    <jsp:setProperty name="UserBean" property="login"/>
    <jsp:setProperty name="UserBean" property="pass"/>
    <jsp:setProperty name="UserBean" property="auth" value="true"/>
    <jsp:getProperty name="UserBean" property="access"/>
    <br>
    <jsp:getProperty name="UserBean" property="login"/>
    <br>
    <jsp:getProperty name="UserBean" property="pass"/>
    <br>

    <c:if test="${UserBean.access ge 1}">
        <%
            session.setAttribute("userAccess",UserBean.getAccess());
        %>
       <c:redirect url="Tasks.jsp"/>
    </c:if>
    <c:redirect url="login.jsp"/>

</jsp:useBean>

